{include file="public/header-static"/}
{include file="public/sidebar"/}
<div id="main">
    {include file="public/header"/}
    <main class="main-content">
        <div class="container">
            <div class="page-header">
                <nav aria-label="breadcrumb">
                    <ol class="breadcrumb">
                        <li class="breadcrumb-item">
                            <a href="#">首页</a>
                        </li>
                        <li class="breadcrumb-item active" aria-current="page">招聘详情</li>
                    </ol>
                </nav>
            </div>
            <div class="row">
                <div class="col-md-12">
                    <div class="card">
                        <div class="card-body">

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">招聘职位</label>
                                <div class="col-sm-8">
                                    <input type="text" name="position" class="form-control" placeholder="招聘职位"
                                           value="{$info.position}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">薪资范围</label>
                                <div class="col-sm-8">
                                    <input type="text" name="salary" class="form-control" placeholder="薪资范围"
                                           value="{$info.salary}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">工作经验</label>
                                <div class="col-sm-8">
                                    <input type="text" name="wname" class="form-control" placeholder="工作经验"
                                           value="{$info.wname}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">学历要求</label>
                                <div class="col-sm-8">
                                    <input type="text" name="rname" class="form-control" placeholder="学历要求"
                                           value="{$info.rname}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">职位详情/福利</label>
                                <div class="col-sm-8">
                                    <textarea class="custom_text form-control" placeholder="职位详情/福利" name="detail">{$info.detail}</textarea>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">用户ID</label>
                                <div class="col-sm-8">
                                    <input type="text" name="uid" class="form-control" placeholder="用户ID"
                                           value="{$info.uid}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">昵称</label>
                                <div class="col-sm-8">
                                    <input type="text" name="nickname" class="form-control" placeholder="昵称"
                                           value="{$info.nickname}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">头像</label>
                                <div class="col-sm-4">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-headimg">
                                            <div class="file-iteme">
                                                <div class="handle" src="{$info.headimg}">
                                                    <span class="fa fa-times"
                                                          style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img style="width: 5rem;height: 5rem;border-radius: 0.375rem;"
                                                     src="{$info.headimg}">
                                            </div>
                                        </div>
                                    </blockquote>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">所属职位</label>
                                <div class="col-sm-8">
                                    <input type="text" name="belong_position" class="form-control" placeholder="所属职位"
                                           value="{$info.belong_position}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">电话</label>
                                <div class="col-sm-8">
                                    <input type="text" name="mobile" class="form-control" placeholder="电话"
                                           value="{$info.mobile}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <input type="hidden" name="id" value="{$info.id}">
                                <label for="" class="col-sm-1 col-form-label">企业名称</label>
                                <div class="col-sm-8">
                                    <input type="text" name="name" class="form-control" placeholder="企业名称"
                                           value="{$info.name}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label for="" class="col-sm-1 col-form-label">行业</label>
                                <div class="col-sm-8">
                                    <input type="text" name="cname" class="form-control" value="{$info.cname}">
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">所在地区</label>
                                <div class="input-group col-sm-8">

                                    <input class="form-control" type="text" style="width:33%;" value="{$info.province}">
                                    <input class="form-control" type="text" style="width:33%;" value="{$info.city}">
                                    <input class="form-control" type="text" style="width:33%;" value="{$info.area}">

                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">LOGO</label>
                                <div class="col-sm-4">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-logo">

                                            <div class="file-iteme">
                                                <div class="handle" src="{$info.logo}">
                                                    <span class="fa fa-times"
                                                          style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img class="myImages" title='点我查看原图' src="{$info.logo}" onclick="lookimg(this.src)">
                                            </div>


                                        </div>
                                    </blockquote>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">二维码</label>
                                <div class="col-sm-4">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-qrcode">

                                            <div class="file-iteme">
                                                <div class="handle" src="{$info.qrcode}">
                                                    <span class="fa fa-times"
                                                          style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img class="myImages" title='点我查看原图' src="{$info.qrcode}" onclick="lookimg(this.src)">
                                            </div>

                                        </div>
                                    </blockquote>
                                </div>

                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">企业介绍</label>
                                <div class="col-sm-8">
                                    <textarea class="custom_text form-control" placeholder="企业介绍" name="introduce">{$info.introduce}</textarea>
                                </div>
                            </div>

                            <div class="form-group row">
                                <label class="col-sm-1 col-form-label">企业图片</label>
                                <div class="col-sm-8">
                                    <blockquote class="layui-elem-quote layui-quote-nm" style="margin-top: 10px;">
                                        预览图：
                                        <div class="layui-upload-list uploader-list" style="overflow: auto;"
                                             id="uploader-images">

                                            {php}
                                            foreach ($info['paths'] as $v)
                                            {
                                            {/php}

                                            <div class="file-iteme">
                                                <div class="handle fm" src="{$v['path']}">
                                                    <span class="fa fa-times"
                                                          style="border-radius: 0.375rem 0.375rem 0 0;"></span>
                                                </div>
                                                <img class="myImages" title='点我查看原图' src="{$v['path']}" onclick="lookimg(this.src)">
                                            </div>

                                            {php}
                                            }
                                            {/php}

                                        </div>
                                    </blockquote>
                                </div>
                            </div>


                            <button id="return" class="btn btn-secondary">返回</button>
                        </div>
                    </div>
                </div>
            </div>

        </div>
    </main>

    {include file="public/footer"/}
    <script type="text/javascript">

        $('#return').click(function () {
            var source = "{$source}";
            console.log(source);
            var url = '{:url("/recruit/index")}';
            if (source == 1) {
                url = '{:url("/check/index")}';
            }
            window.location.href = url + '?type=4';
        });

    </script>


</div>